Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Resolver(val objectValueFragment: String = "", val queryValueFragment: String = "", val variables: Array<Variable> = [])

Annotation to mark a class as a resolver for a field or object in a GraphQL schema which requires custom resolution logic rather than simple property access.

Link copied to clipboard
annotation class Variable(val name: String, val fromObjectField: String = UNSET_STRING_VALUE, val fromQueryField: String = UNSET_STRING_VALUE, val fromArgument: String = UNSET_STRING_VALUE)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Variables(val types: String)

Declares the set of GraphQL variables that a VariablesProvider or Resolver binding will supply.

Link copied to clipboard
fun interface VariablesProvider<A : Arguments>

A base interface for dynamic provisioning of variable values. All implementations of VariablesProvider must be annotated with Variables.